#ifndef _DEFINES_H_INCLUDED_
#define _DEFINES_H_INCLUDED_

#define NULL ((void *) 0)
#define SERIAL_DEFAULT_DEVICE 1

typedef unsigned char uint8;
typedef unsigned short uint16;
typedef unsigned long uint32;

typedef int     kz_thread_id_t;
typedef int     (*kz_func_t)(int argc, char *argv[]);
typedef void    (*kz_handler_t)(void);
typedef int     kz_msgbox_id_t;

#define THREAD_ID_NULL (-1)
#define THREAD_ID_ERR (-2)
#define MSGBOX_NULL (-1)

#define THREAD_NAME_SIZE 15

typedef struct {
    kz_thread_id_t id;
    char name[THREAD_NAME_SIZE + 1];
    int priority;
    unsigned stacksize;
    uint16 flags;
} kz_thread_info_t;

#define TICK_PER_SEC  5

#endif
